#ifndef __MOVE_H__
#define __MOVE_H__

#include "motor/motor.h"
#include "pid/pid_ctrl.h"

typedef enum 
{
    STOP,
    STRAIGHT,
    STRAIGHT_SLOW,
    TURN
} move_status_t;

extern volatile move_status_t move_status;

void move_init();
void move_slow_init();
void move_straight_proccess(motor_t* motor1, motor_t* motor2, float base_speed);
void turn_left();
void turn_right();
void line_straight(motor_t* motor_1, motor_t* motor_2, float base_speed);
void line_straight_slow(motor_t* motor_1, motor_t* motor_2, float base_speed);
void line_move_init();
void turn_line_flw(motor_t* motor_1, motor_t* motor_2);
void turn_imu(motor_t* motor_1, motor_t* motor_2, float base_speed);
void turn_imu_slow(motor_t* motor_1, motor_t* motor_2, float base_speed);
void line_move_slow_init();

#endif
